//
//  WCAddrEditCell.m
//  CBT
//
//  Created by apple on 2019/7/9.
//  Copyright © 2019 Mr.Zhang. All rights reserved.
//

#import "WCAddrSelectCell.h"

@implementation WCAddrSelectCell

+ (instancetype)createTableView:(UITableView *)tableView {
    WCAddrSelectCell *cell = [tableView dequeueReusableCellWithIdentifier:@"addrselectCell"];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    cell.backgroundColor = [UIColor whiteColor];
    
    [cell makeViews];
    
    return cell;
}

- (void)makeViews {
    
    [self.contentView addSubview:self.titleNameLabel];
    [self.titleNameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(25);
        make.top.mas_equalTo(10);
        make.height.mas_equalTo(28);
    }];
    
    UIImage *img = [UIImage imageNamed:@"mine_next"];
    UIImageView *swall = [[UIImageView alloc] initWithImage:img];
    [self.contentView addSubview:swall];
    [swall mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-30);
        make.top.mas_equalTo(20);
        make.height.mas_equalTo(img.size.height);
        make.width.mas_equalTo(img.size.width);
    }];
    
}


- (UILabel *)titleNameLabel {
    if (!_titleNameLabel) {
        _titleNameLabel = [[UILabel alloc] init];
        _titleNameLabel.textColor = UIColorFromRGB(0x333333);
        _titleNameLabel.font = [UIFont systemFontOfSize:14];
        _titleNameLabel.text = @"选择城市";
    }
    
    return _titleNameLabel;
}

@end
